package heap

import "ch06/classfile"

type FieldRef struct {
	MemberRef
	field *Field
}

func newFieldRef (cp *ConstantPool, refInfo classfile.ConstantFieldrefInfo) *FieldRef{
	ref := &FieldRef{}
	ref.cp = cp
	ref.copyMemberRefInfo(&refInfo.ConstantMemberrefInfo)
	return ref
}
